package com.koi.satoken.service.role;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.koi.plus.mapper.system.SysRoleMapper;
import com.koi.pojo.system.SysRole;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ･ᴗ･
 * @description [SysRoleServiceImpl]
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class SaRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SaRoleService {

    private final SysRoleMapper roleMapper;

    /**
     * @description [查询用户拥有正常角色-Sa-Token角色权限]
     * @author ･ᴗ･
     */
    @Override
    public List<String> listAuthRoleCode(Long userId) {
        return roleMapper.listAuthRoleCode(userId);
    }

}
